<div class="users form">
    <?php echo $this->Form->create('User', array('action'=>'edit_profile','enctype' => 'multipart/form-data'));?>
	<fieldset>
 		<legend><?php __('Edit profile'); ?></legend>
        <?php
		echo $this->Form->input('email_addr',array( 'label' => 'Email adress', 'disabled' => 'disabled'));
        echo $this->Form->input('image',array('type'=>'file','label'=>'New profile image'));
        echo '<center>';
        if (file_exists('img/profile/user/' . $this->data['User']['id'] . '.jpg')) {
            echo $this->Html->image('profile/user/' . $this->data['User']['id'] . '.jpg', array('width' => '100'));
        } else {
            echo $this->Html->image('default_user.jpg');
        }
        echo '</center>';
        echo '<br/><br/>';
        echo $this->Form->input('first_name',array( 'label' => 'First name'));
		echo $this->Form->input('last_name',array( 'label' => 'Last name'));
        echo $this->Form->input('phone',array( 'label' => 'Phone Number'));
        echo $this->Form->input('addr1',array('label'=>'Street Line 1'));
        echo $this->Form->input('addr2',array('label'=>'Street Line 2'));
        echo $this->Form->input('city',array('label'=>'City'));
        echo $this->Form->input('state',array('label'=>'State'));
        echo $this->Form->input('postal',array('label'=>'Postal'));
        ?>
	</fieldset>
    <div style="float:right;">
    <?php echo $this->Form->end('Update'); ?>
    </div>
    <div style="clear:both;"></div>
</div>
